package org.parklab.lab.web.client.data.chat;

import org.parklab.lab.web.client.data.user.UserInfo;

public class ChatInfoFactory {
	private static ChatInfoFactory instance;

	public static ChatInfoFactory getInstance() {
		synchronized (instance) {
			if (null == instance) {
				instance = new ChatInfoFactory();
			}
		}
		return instance;
	}

	private ChatInfoFactory() {	}
	
	public ChatInfo createChat(UserInfo creator) {
		return new ChatInfo(getNextChatID(), creator);
	}

	private String getNextChatID() {
		return "test";
	}
}
